package com.lemonsama.lesson5;

import javax.swing.*;
import java.awt.*;
import java.net.URL;

public class JButtonTest3 extends JFrame {

    public JButtonTest3() {
        Container contentPane = this.getContentPane();
        URL resource = JButtonTest3.class.getResource("1640404870375.png");
        Icon Icon = new ImageIcon(resource);

        JCheckBox checkBox1 = new JCheckBox("checkBox01");
        JCheckBox checkBox2 = new JCheckBox("checkBox02");

        contentPane.add(checkBox1, BorderLayout.NORTH);
        contentPane.add(checkBox2, BorderLayout.SOUTH);

        this.setSize(500, 300);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new JButtonTest3();
    }
}
